<template>
	<view class="all">
		<view class="uni-page-head">
			<view class="input">
				<text
					style="font-size: 40rpx;font-weight: 600; color: #ffffff; font-family: 'Microsoft YaHei'">同心花店</text>
				<text
					style="font-size: 20rpx; color: #ffffff;padding: 20rpx; font-family: 'YouYuan'">实现线上购物，优选快速到家</text>
				<view class="search" style="width: 80%">
					<u--input shape='circle' prefixIconStyle='font-size:40rpx' prefixIcon="search" placeholder="请输入内容">
					</u--input>
				</view>
			</view>
		</view>
		<view class="top">
			<u-swiper :list="list1" height="200rpx"></u-swiper>
		</view>
		<view class="tab">
			<view class="box">
				<view class="item" @click="flower"
					style="background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.dtstatic.com%2Fuploads%2Fblog%2F202105%2F23%2F20210523112539_e1d39.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.dtstatic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669364156&t=4b32c3ac6db67a94fee1e11b3715fc65');">
					<!-- <u-icon name="photo" color="#f33d53" size="60"></u-icon> -->
				</view>
				<text>鲜花</text>
			</view>
			<view class="box">
				<view class="item" @click="flower"
					style="background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.alicdn.com%2Fi1%2F1033039774%2FO1CN01rOZgEC2M4XoYLbGyf_%21%211033039774.jpg&refer=http%3A%2F%2Fimg.alicdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669363354&t=4f4e2e4f15a9e8d5b2fe5e9c9d95510e');">
				</view>
				<text>花车定制</text>
			</view>
			<view class="box">
				<view class="item" @click="flower"
					style="background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.yzcdn.cn%2Fupload_files%2F2020%2F08%2F21%2FFmalJcbPJOKQLJ7dT0nEmLZz59JA.jpg%21middle.jpg&refer=http%3A%2F%2Fimg.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669363787&t=7acdb7a98795e8f24b5e6f335e6af8bf');">
				</view>
				<text>花束定制</text>
			</view>
			<view class="box">
				<view class="item" @click="flower"
					style="background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01c70c5544e0680000002b0107492a.jpg%401280w_1l_2o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669365566&t=2b8c0484c9f67f3bd58a44a1a5df0701');">
				</view>
				<text>盆栽</text>
			</view>

		</view>


		<!-- content内容 -->
		<view class="content" style="margin-top: 25rpx; padding: 5rpx 20rpx;">
			<u-row customStyle="margin-bottom: 10px">
				<u-col span="6">  <!-- 左边商品区 -->
					<view class="goods_item left">
						<view class="goods_img ">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg01.yzcdn.cn%2Fupload_files%2F2020%2F08%2F04%2FFreMDcp8A-5fyGoW_50WZeCwfBef.jpg%21middle.jpg&refer=http%3A%2F%2Fimg01.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669425031&t=4917d531f5906b909cc876625c8a8ac8">
						</view>
						<view class="goods_title">YH多头玫瑰-人鱼公主-10枝/扎</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item left">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg01.yzcdn.cn%2Fupload_files%2F2020%2F08%2F04%2FFreMDcp8A-5fyGoW_50WZeCwfBef.jpg%21middle.jpg&refer=http%3A%2F%2Fimg01.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669425031&t=4917d531f5906b909cc876625c8a8ac8">
						</view>
						<view class="goods_title">YH多头玫瑰-人鱼公主-10枝/扎</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item left">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg01.yzcdn.cn%2Fupload_files%2F2020%2F08%2F04%2FFreMDcp8A-5fyGoW_50WZeCwfBef.jpg%21middle.jpg&refer=http%3A%2F%2Fimg01.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669425031&t=4917d531f5906b909cc876625c8a8ac8">
						</view>
						<view class="goods_title">YH多头玫瑰-人鱼公主-10枝/扎</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item left">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg01.yzcdn.cn%2Fupload_files%2F2020%2F08%2F04%2FFreMDcp8A-5fyGoW_50WZeCwfBef.jpg%21middle.jpg&refer=http%3A%2F%2Fimg01.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669425031&t=4917d531f5906b909cc876625c8a8ac8">
						</view>
						<view class="goods_title">YH多头玫瑰-人鱼公主-10枝/扎</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</u-col>
				<u-col span="6"><!-- 右边商品区 -->
					<view class="goods_item right">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202002%2F12%2F20200212081131_ehnny.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669447538&t=1afe44d75e1be74fdf934732d48408cb">
						</view>
						<view class="goods_title">人鱼公主-10枝/扎1</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item right">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202002%2F12%2F20200212081131_ehnny.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669447538&t=1afe44d75e1be74fdf934732d48408cb">
						</view>
						<view class="goods_title">人鱼公主-10枝/扎1</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item right">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202002%2F12%2F20200212081131_ehnny.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669447538&t=1afe44d75e1be74fdf934732d48408cb">
						</view>
						<view class="goods_title">人鱼公主-10枝/扎1</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
					<view class="goods_item right">
						<view class="goods_img">
							<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202002%2F12%2F20200212081131_ehnny.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669447538&t=1afe44d75e1be74fdf934732d48408cb">
						</view>
						<view class="goods_title">人鱼公主-10枝/扎1</view>
						<view class="goods_bottom">
							<view class="price">￥25.99</view>
							<view class="addCart"><u-button size="mini" shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		options: {
			styleIsolation: 'shared'
		},
		data() {
			return {
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				]
			}
		},
		onLoad() {

		},
		methods: {
			flower() {
				console.log('jayjay')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.uni-page{
		background-color: black;
	}
	.u-input {
		margin-top: 10rpx;
		height: 30rpx;
		background-color: #f6f6f6;
	}
.all{
	padding-bottom: 115rpx;
}
	.uni-page-head {
		position: relative;
		height: 250rpx;
		width: 100%;
		text-align: left;
		background-color: #e30011;

		.input {
			padding-top: 85rpx;
			margin-left: 30rpx;
			.search {
				position: absolute;
				top: 59%;
				left: 2%;
			}
		}
	}

	.top {
		margin: 0;
		width: 100%
	}

	.tab {
		padding-top: 20rpx;
		display: flex;
		justify-content: space-around;
		align-items: center;
		width: 100%;
		flex-wrap: wrap;

		.box {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			.item {
				height: 110rpx;
				width: 110rpx;
				margin-bottom: 10rpx;
				border-radius: 20%;
				background-color: #f0e1cd;
				display: flex;
				justify-content: center;
				align-items: center;
				background-size: cover;
				background-repeat: no-repeat;

			}
		}

	}

// 商品区域样式
.left{
	magin-right: 20rpx;
	padding-right: 20rpx;
}
.right{
	margin-left: 20rpx;
}
.goods_item{
	position: relative;
	height: 450rpx;
	background-color: #ffffff;
	margin-bottom: 20rpx;
	.goods_img{
		//width: 100%;
		padding: 20rpx 30rpx 0 30rpx;
		border-radius: 5%;
		background-color: #ffffff;
		height: 280rpx;
		img{
			width: 100%;
			height: 100%;
			object-fit:cover;
			border-radius: 10% 10% 0 0;
		}
	}
	.goods_title{
		width: 100%;
		padding-top: 8rpx;
		font-size: 29rpx;
		font-weight: 500;
		text-indent: 40rpx;
	}
	.goods_bottom{
		position: absolute;
		width: 100%;
		bottom: 3%;
		padding: 0 10rpx;
		display: flex;
		.price{
			color: #d3110b;
			font-size: 40rpx;
		}
		.addCart{
			position: absolute;
			width: 130rpx;
			right: 10%;
		}
	}
}
</style>
